package com.ai.wx.context;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.ai.wx.service.ProductService;

@Component
public class WXCacheInitializingBean implements InitializingBean{

	@Autowired
	private ProductService productService;
	@Override
	public void afterPropertiesSet() throws Exception {
		productService.loadCache(); 
	}
	 
}